package com.ruoyi.project.tickets.mapper;

import java.util.List;
import com.ruoyi.project.tickets.domain.OutStockDetails;
import com.ruoyi.project.tickets.domain.vo.OutStockDetailsVo;
import org.apache.ibatis.annotations.Param;

/**
 * 出库详情Mapper接口
 * 
 * @author 孙山伟
 * @date 2023-07-01
 */
public interface OutStockDetailsMapper 
{
    /**
     * 查询出库详情
     * 
     * @param id 出库详情ID
     * @return 出库详情
     */
    public OutStockDetails selectOutStockDetailsById(Long id);

    /**
     * 查询出库详情列表
     * 
     * @param outStockDetails 出库详情
     * @return 出库详情集合
     */
    public List<OutStockDetails> selectOutStockDetailsList(OutStockDetails outStockDetails);

    /**
     * 新增出库详情
     * 
     * @param outStockDetails 出库详情
     * @return 结果
     */
    public int insertOutStockDetails(OutStockDetails outStockDetails);

    /**
     * 修改出库详情
     * 
     * @param outStockDetails 出库详情
     * @return 结果
     */
    public int updateOutStockDetails(OutStockDetails outStockDetails);

    /**
     * 删除出库详情
     * 
     * @param id 出库详情ID
     * @return 结果
     */
    public int deleteOutStockDetailsById(Long id);

    /**
     * 批量删除出库详情
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOutStockDetailsByIds(Long[] ids);

    List<OutStockDetailsVo> listByStockId(@Param("outStockId")Long stockId);
}
